package com.it.learn.feign;

import com.it.learn.fallback.FeignBaseFallBackImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "base-service", fallback = FeignBaseFallBackImpl.class)
public interface FeignBaseService {

	@RequestMapping(value = "/num/add/{a}/{b}", method = RequestMethod.GET)
	String addNum(@PathVariable("a") int a,@PathVariable("b") int b);

}
